\begin{algorithm}[H]
    \renewcommand{\algorithmicrequire}{\textbf{Input:}}
	\renewcommand{\algorithmicensure}{\textbf{Output:}}
	\caption{粒球最近邻}
    \label{al:gbknn}
    \begin{algorithmic}[1] % 控制是否有序号
        \Require Data Set $D$,the queried point $O$ which is Outside $D$ , the granular balls $B$ obtained by Algorithm \ref{al:geneball}; % input 的内容
	    \Ensure The label of $O$ ; % output 的内容
        \State Compute the granular-ball distance from point $O$ to each granular ball $B_i$ ;
        \State The label of point $O$ is equal to the label of the granular ball with the smallest distance to $O$; 
    \end{algorithmic}
\end{algorithm}